package com.chenglu.android.mine.member.mvp.model;





import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.mine.bean.AmountTypeBean;
import com.chenglu.android.mine.bean.FansListBean;
import com.chenglu.android.mine.bean.MemberCenterBean;
import com.chenglu.android.mine.bean.MoneyBean;
import com.chenglu.android.mine.bean.PosterBean;
import com.chenglu.android.mine.bean.ReturnStringBean;
import com.chenglu.android.mine.member.mvp.contract.MemberContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class MemberModel implements MemberContract.MemberModel {




    @Override
    public Observable<MemberCenterBean> getMemberCenterInfo(String token) {
        return RetrofitClientCL.getInstance().getApi().getMemberCenterInfo(token);
    }

    @Override
    public Observable<PosterBean> getPromotionPoster(String token) {
        return RetrofitClientCL.getInstance().getApi().getPromotionPoster(token);
    }

    @Override
    public Observable<FansListBean> getFansPage(String token, int current, int size) {
        return RetrofitClientCL.getInstance().getApi().getFansPage(token,current,size);
    }

    @Override
    public Observable<FansListBean> getConsumerPage(String token, int current, int size) {
        return RetrofitClientCL.getInstance().getApi().getConsumerPage(token, current, size);
    }

    @Override
    public Observable<ReturnStringBean> getLevelDescriptions(String token) {
        return RetrofitClientCL.getInstance().getApi().getLevelDescriptions(token);
    }



}
